﻿using CatUtils.Utils.Currency.IoUtils;
using RabbitDownload.Helper;

using System;
using System.Collections.Generic;

namespace RabbitDownload.WebSite.Konachan
{
    internal class KonachanStaticValue
    {
        private static string allApi = "https://konachan.net/post.xml?limit=100&page={0}";

        private static string tagApi = "https://konachan.net/post.xml?limit=100&page={0}&tags={1}";

        private static string downLoadMode = "";
        private static int imgScore = 0;
        private static bool UseLogFlag = true;
        private static bool excludeFlag = false;
        private static String KoachanOldListPath = StaticValueOld.OldLogPath + "KonachanList.lst";
        private static List<string> KoachanOldList = FileHelper.ReadAllLine(KoachanOldListPath1);

        public struct KonachanInfo
        {
            private int imgId;
            private int imgScore;
            private List<string> tagList;
            private string fileUrl;
            private string rating;
            private string source;

            public int ImgId { get => imgId; set => imgId = value; }
            public int ImgScore { get => imgScore; set => imgScore = value; }
            public List<string> TagList { get => tagList; set => tagList = value; }
            public string FileUrl { get => fileUrl; set => fileUrl = value; }
            public string Rating { get => rating; set => rating = value; }
            public string Source { get => source; set => source = value; }
        }

        /// <summary>
        /// 下载全部图的API
        /// </summary>
        public static string AllApi { get => allApi; set => allApi = value; }

        /// <summary>
        /// 下载模式
        /// </summary>
        public static string DownLoadMode { get => downLoadMode; set => downLoadMode = value; }

        /// <summary>
        /// 图片分数
        /// </summary>
        public static int ImgScore { get => imgScore; set => imgScore = value; }

        /// <summary>
        /// Tag扫描API
        /// </summary>
        public static string TagApi { get => tagApi; set => tagApi = value; }

        /// <summary>
        /// 启用用户日志模块
        /// </summary>
        public static bool UseLogFlag1 { get => UseLogFlag; set => UseLogFlag = value; }

        /// <summary>
        /// 启用黑名单模块
        /// </summary>
        public static bool ExcludeFlag { get => excludeFlag; set => excludeFlag = value; }

        public static string KoachanOldListPath1 { get => KoachanOldListPath; set => KoachanOldListPath = value; }
        public static List<string> KoachanOldList1 { get => KoachanOldList; set => KoachanOldList = value; }
    }
}